package com.houger.ddd.seckill.facade.dto.mq;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.houger.ddd.common.base.BaseDto;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * @author Houger.
 * @date 2024年05月30日 14:24.
 */
@EqualsAndHashCode(callSuper = true)
@Data
@Builder
public class ActivityBasicMqDto extends BaseDto {
    private Long templateId;
    private int fromStatus;
    private int toStatus;
    private String sendTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime startTime;
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss")
    private LocalDateTime endTime;
    private Long version;

}
